package cn.source.system.domain;

import cn.source.common.annotation.Excel;
import cn.source.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;

/**
 * 资讯信息对象 deyu_article
 * 
 * @author deyucare.com
 * @date 2025-02-20
 */
public class DeyuArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 文章名称 */
    @ApiModelProperty("文章名称")
    @NotNull(message = "文章名称不能为空")
    @Excel(name = "文章名称")
    private String title;

    /** banner图 */
    @ApiModelProperty("banner图")
    @NotNull(message = "banner图不能为空")
    @Excel(name = "banner图")
    private String faceThum;

    /** 内容 */
    @ApiModelProperty("内容")
    @Excel(name = "内容")
    private String content;

    /** 状态 0上架 1下架 */
    @Excel(name = "状态 0上架 1下架")
    private Long state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setFaceThum(String faceThum) 
    {
        this.faceThum = faceThum;
    }

    public String getFaceThum() 
    {
        return faceThum;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("faceThum", getFaceThum())
            .append("content", getContent())
            .append("state", getState())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
